import service from '@/utils/request'

// @Tags Lines
// @Summary 创建Lines
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Lines true "创建Lines"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /lines/createLines [post]
export const createLines = (data) => {
     return service({
         url: "/lines/createLines",
         method: 'post',
         data
     })
 }


// @Tags Lines
// @Summary 删除Lines
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Lines true "删除Lines"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lines/deleteLines [delete]
 export const deleteLines = (data) => {
     return service({
         url: "/lines/deleteLines",
         method: 'delete',
         data
     })
 }

// @Tags Lines
// @Summary 删除Lines
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除Lines"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lines/deleteLines [delete]
 export const deleteLinesByIds = (data) => {
     return service({
         url: "/lines/deleteLinesByIds",
         method: 'delete',
         data
     })
 }

// @Tags Lines
// @Summary 更新Lines
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Lines true "更新Lines"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /lines/updateLines [put]
 export const updateLines = (data) => {
     return service({
         url: "/lines/updateLines",
         method: 'put',
         data
     })
 }


// @Tags Lines
// @Summary 用id查询Lines
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Lines true "用id查询Lines"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /lines/findLines [get]
 export const findLines = (params) => {
     return service({
         url: "/lines/findLines",
         method: 'get',
         params
     })
 }


// @Tags Lines
// @Summary 分页获取Lines列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取Lines列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /lines/getLinesList [get]
 export const getLinesList = (params) => {
     return service({
         url: "/lines/getLinesList",
         method: 'get',
         params
     })
 }


